<?php
class Employeedetail extends AppModel {
	var $name = 'Employeedetail';
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Employee' => array(
			'className' => 'Employee',
			'foreignKey' => 'employee_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Department' => array(
			'className' => 'Department',
			'foreignKey' => 'department_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Saftyinstructor' => array(
			'className' => 'Saftyinstructor',
			'foreignKey' => 'saftyinstructor_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Qualitymanager' => array(
			'className' => 'Qualitymanager',
			'foreignKey' => 'qualitymanager_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Degree' => array(
			'className' => 'Degree',
			'foreignKey' => 'degree_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Contract' => array(
			'className' => 'Contract',
			'foreignKey' => 'contract_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Hardware' => array(
			'className' => 'Hardware',
			'foreignKey' => 'hardware_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasAndBelongsToMany = array(
		'Mailinglist' => array(
			'className' => 'Mailinglist',
			'joinTable' => 'mailinglists_employeedetails',
			'foreignKey' => 'employeedetail_id',
			'associationForeignKey' => 'mailinglist_id',
			'unique' => true,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		),
		'Sapserver' => array(
			'className' => 'Sapserver',
			'joinTable' => 'sapservers_employeedetails',
			'foreignKey' => 'employeedetail_id',
			'associationForeignKey' => 'sapserver_id',
			'unique' => true,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		)
	);

}
?>